﻿
namespace Moria.Silverlight.Model
{
	public enum ItemType
	{
		NEVER = -1,/* used by find_range() for non-Search */
		NOTHING = 0,

		MISC,
		CHEST,

		SLING_AMMO, // min enchant, min wear
		BOLT,
		ARROW,
		SPIKE,
		LIGHT,
		BOW,
		HAFTED,
		POLEARM,
		SWORD,
		DIGGING,

		BOOTS,
		GLOVES,
		CLOAK,
		HELM,
		SHIELD,
		HARD_ARMOR,
		SOFT_ARMOR, // max enchant

		AMULET,
		RING, // max wear

		STAFF,
		WAND,
		SCROLL1,
		SCROLL2,
		POTION1,
		POTION2,
		FLASK,
		FOOD,

		MAGIC_BOOK,
		PRAYER_BOOK,   // max object

		GOLD,  // max pick up

		INVIS_TRAP,
		VIS_TRAP, // min visibilie

		RUBBLE,

		OPEN_DOOR,  // min door
		CLOSED_DOOR,
		SECRET_DOOR,
		STORE_DOOR, // max visible, max door

		UP_STAIR,
		DOWN_STAIR,


		MIN_ENCHANT = SLING_AMMO,   /* min Type that uses the tr_* flags */
		MAX_ENCHANT = SOFT_ARMOR,   /* max Type that uses the tr_* flags */

		MIN_WEAR = SLING_AMMO,      /* min Type for wearable Items, all Items between MIN_WEAR and MAX_WEAR use the same addFlag bits, see the tr_* defines */
		MAX_WEAR = RING,      /* max Type for wearable Items */

		MAX_OBJECT = PRAYER_BOOK,	/* objects with Type above this are never picked up by monsters */

		MIN_PICK_UP = MISC,
		MAX_PICK_UP = GOLD,	/* objects with higher tvals can not be picked up */

		MIN_VISIBLE = VIS_TRAP,  /* objects between MIN_VISIBLE and MAX_VISIBLE are always visible,*/
		MAX_VISIBLE = STORE_DOOR,	/*	ie the cave fm addFlag is set when they are present */

		MIN_DOORS = OPEN_DOOR,    /* following objects are never deleted when trying to create another one during Level generation */
		MAX_DOORS = STORE_DOOR,    /* following objects are never deleted when trying to create another one during Level generation */


	}
}
